package com.bjpowernode.controller;

import org.springframework.security.web.FilterChainProxy;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//项目加了spring security依赖之后，所有的controller接口都需要登陆后才能访问，如果没有登录就会跳到登录页
@RestController
public class UserController {

    @RequestMapping("/hello")
    public String hello(){
        return "Hello,Spring Security.";
    }
}
